package com.xin.service;

import com.alibaba.fastjson.JSONArray;
import com.xin.entity.SOrg;
import com.xin.entity.SRoleOrg;
import com.baomidou.mybatisplus.service.IService;
import com.xin.entity.STeacherRole;

import java.util.List;

/**
 * <p>
 * 角色组织关系表 服务类
 * </p>
 *
 * @author l1
 * @since 2017-12-05
 */
public interface SRoleOrgService extends IService<SRoleOrg> {

    List<SOrg> findOrgsByTeacherId(String id);

    void addRoleAndOrgs(STeacherRole str, JSONArray nodesArray);

    void editRoleAndOrgs(STeacherRole str, JSONArray nodesArray);
}
